<!--
*Author：COCO
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/worker/worker.manage/Worker_OrderType.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/Worker/Worker_OrderType.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'OrderTypeId',
                footer: "Foots",
                cnName: '工序分类',
                name: 'worker/Worker_OrderType',
                url: "/Worker_OrderType/",
                sortName: "OrderTypeId"
            });
            const editFormFields = ref({"OrderTypeCope":"","OrderTypes":"","Sort":"","State":"","Descs":"","CreateDate":"","CreateID":"","Creator":"","Modifier":"","ModifyDate":"","ModifyID":""});
            const editFormOptions = ref([[{"title":"工序分类编号","field":"OrderTypeCope"}],
                                 [{"title":"工序分类名称","field":"OrderTypes"}],
                              [{"title":"排序","field":"Sort","type":"number"}],
                              [{"dataKey":"fenleizhuangtai","data":[],"title":"状态","field":"State","type":"radio"}],
                              [{"title":"备注","field":"Descs"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'OrderTypeId',title:'序号',type:'int',width:110,readonly:true,require:true,align:'left',sort:true},
                       {field:'OrderTypeCope',title:'工序分类编号',type:'string',width:180,align:'left'},
                       {field:'OrderTypes',title:'工序分类名称',type:'string',width:180,align:'left'},
                       {field:'Sort',title:'排序',type:'int',width:110,align:'left'},
                       {field:'State',title:'状态',type:'int',bind:{ key:'fenleizhuangtai',data:[]},width:110,align:'left'},
                       {field:'Descs',title:'备注',type:'string',width:180,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
